package es.christiangarcia.android.pokepedia.model;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Pokemon {

	private int num;
	private String name;

	private Set<Pokemon> nextEvolutions;

	private List<Attack> learnableAttacks;

	public Pokemon(int num, String name) {
		this.num = num;
		this.name = name;
		this.nextEvolutions = new HashSet<Pokemon>();
		this.learnableAttacks = new ArrayList<Attack>();

	}

	public int getNum() {
		return num;
	}

	public String getName() {
		return name;
	}

	public Set<Pokemon> getNextEvolutions() {
		return nextEvolutions;
	}

	public List<Attack> getLearnableAttacks() {
		return learnableAttacks;
	}

	public boolean hasMultipleEvolutions() {
		return nextEvolutions.size() > 1;
	}

	@Override
	public String toString() {
		return String.format("%d: %s", num, name);
	}

}
